<div cg-busy="{promise:loading,message:'正在加载...'}">
    <div ng-if="student.pay && !student.pay.paid" class="alert alert-warning no-border m-n text-center">
        <h2>你报考了<span ng-if="student.subjectType == 'ART'">美术与设计学类统考</span><span ng-if="student.subjectType == 'SPORT'">体育专业素质测试</span>，请在规定的时间内完成网上缴费！</h2>
    </div>
    <div class="wrapper-lg bg-white-opacity">
        <div class="row m-t">
            <div class="col-sm-12">
                <div class="text-center">
                    <div class="inline">
                        <div class="h1 text-xxl m-b font-bold">{{student.name}}</div>
                        <small class="text-muted m-b">报名号：{{student.examId}}</small>
                        <h4><span class="padder">{{student.examType.name}}</span><span class="padder">{{student.subject.name}}</span></h4>
                        <h3 ng-if="student.pay && student.pay.paid" class="text-success"><i class="icon-check text-success"></i>&nbsp;已缴费</h3>
                        <h2 ng-if="!student.pay || student.pay.paid" class="text-success"><i class="icon-check text-success"></i>&nbsp;报名完成</h2>
                        <div class="wrapper">
                            <a ui-sref="home.edit" class="btn btn-lg btn-default btn-rounded"><i class="fa fa-pencil"></i>&nbsp;修改资料</a> &nbsp;&nbsp;
                            <a ng-if="!student.pay || student.pay.paid" href="/view/print/{{student.id}}" target="_blank" class="btn btn-lg btn-bg btn-rounded btn-info"><i class="icon icon-printer"></i>&nbsp;打印核对表</a>
                            <a ng-if="student.pay && !student.pay.paid" target="_blank" href="/view/pay/order/{{student.id}}" ng-click="goPay()" class="btn btn-lg btn-bg btn-rounded btn-danger"><i class="icon icon-basket"></i>&nbsp;网上缴费</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

<div class="visible-xs">
    <div ng-if="student.subjectType == 'ART'">
        <h4 class="m-n wrapper bg-white">艺术专业</h4>
    </div>
    <h4 class="m-n wrapper bg-white">个人资料</h4>
    <div class="wrapper">
        <div class="panel panel-default no-border">
        </div>
    </div>
</div>
<div class="wrapper">
<table class="table table-bordered table-striped bg-white wb-all" style="table-layout:fixed">
    <caption class="bg-white text-center font-bold">考生报名信息表</caption>
    <tbody ng-if="student.subjectType == 'ART' && student.arts[0].isEnabled">
        <tr>
            <td class="font-bold">艺术类统考</td>
            <td colspan="6">不报考</td>
        </tr>
    </tbody>
    <tbody ng-if="student.subjectType == 'ART' && !student.arts[0].isEnabled">
        <tr ng-if="student.subjectType == 'ART'">
            <td class="font-bold">艺术类统考</td>
            <td ng-repeat="item in student.arts | filter:{id:'!9'}">
                <span ng-if="item.isEnabled" >{{item.name}}</span>
            </td>
            <td></td>
        </tr>
        <tr ng-if="student.subjectType == 'ART'">
            <td class="font-bold">戏剧与影视学类专业方向</td>
            <td ng-repeat="d in student.arts[4].directs">
                <span ng-if="d.isEnabled" >{{d.name}}</span>
            </td>
            <td></td>
        </tr>
    </tbody>
    <tbody>
        <tr ng-if="student.subjectType == 'SPORT'">
            <td class="font-bold">体育专业素质测试</td>
            <td ng-if="student.sportSigned == 1">报考</td>
            <td ng-if="student.sportSigned == 2">不报考</td>
            <td class="font-bold">测试项目</td>
            <td colspan="4"><span ng-if="student.sportSigned == 1">{{student.sport.name}}</span></td>
        </tr>
        <tr>
            <td class="font-bold" >报名号</td>
            <td colspan="2">{{student.examId}}</td>
            <td class="font-bold">姓名</td>
            <td colspan="2">{{student.name}}</td>
            
        </tr>
        <tr>
            <td class="font-bold">出生日期</td>
            <td>{{student.birth}}</td>
            <td class="font-bold">性别</td>
            <td>{{student.gender == 1?'男':'女'}}</td>
            <td class="font-bold">学籍号</td>
            <td>{{student.stuID}}</td>
        </tr>
        <tr>
            <td class="font-bold">民族</td>
            <td colspan="3">{{student.nation.name}}</td>
            <td class="font-bold">政治面貌</td>
            <td>{{student.polity.name}}</td>
            
        </tr>
         <tr>
            <td class="font-bold">考生类别</td>
            <td colspan="3">{{student.stuType.name}}</td>
            <td class="font-bold">考试类型</td>
            <td>{{student.examType.name}}</td>
            
        </tr>
         <tr>
            <td class="font-bold">身份证号</td>
            <td colspan="5">{{student.certino}}</td>
            
        </tr>
         <tr>
            <td class="font-bold">考何种外语</td>
            <td colspan="2">{{student.foreign.name}}</td>
            <td class="font-bold">毕业类型</td>
            <td colspan="2">{{student.graduation.name}}</td>
            
        </tr>
        <tr>
            <td class="font-bold">毕业中学</td>
            <td colspan="2">{{student.gradeSchool.name}}</td>
            <td class="font-bold">班级</td>
            <td colspan="2">{{student.schoolClass.name}}</td>
            
        </tr>
        
        <tr>
            <td class="font-bold">户口所在地</td>
            <td colspan="2">{{student.censusProv.name}}{{student.censusCity.name}}{{student.censusRegion.name}}</td>
            <td class="font-bold">英语口语</td>
            <td colspan="2">{{student.spokenType.name}}</td>
            
        </tr>
        <tr>
            <td class="font-bold">收件人</td>
            <td>{{student.receive}}</td>
            <td class="font-bold">收件人地址</td>
            <td>{{student.address}}</td>
            <td class="font-bold">收件邮编</td>
            <td>{{student.zipcode}}</td>
        </tr>
        <tr>
        <td class="font-bold" rowspan="{{student.edu.length+2}}">个人简历
        </td>
        </tr>
        <tr class="font-bold">
            <td>自何年何月</td>
            <td>至何年何月</td>
            <td>在何地何单位学习或工作</td>
            <td>任何职务</td>
            <td>证明人</td>
        </tr>
        <tr ng-repeat="item in student.edu">
            <td><span ng-if="item.start">{{item.start}}年9月</span></td>
            <td><span ng-if="item.end">{{item.end}}年6月</span></td>
            <td>{{item.school}}</td>
            <td>{{item.post}}</td>
            <td>{{item.witness}}</td>
        </tr>
         <tr>
            <td class="font-bold">有何特长</td>
            <td colspan="2">{{student.special}}</td>
            <td class="font-bold">现阶段负责人</td>
            <td colspan="2">{{student.teacher}}</td>
            
        </tr>
        <tr>
            <td class="font-bold">奖励或处分</td>
            <td colspan="5">{{student.honor}}</td>
        </tr>
        <tr>
        <td class="font-bold" rowspan="{{student.family.length+2}}">家庭主要成员
        </td>
        </tr>
        <tr class="font-bold">
            <td>关系</td>
            <td>姓名</td>
            <td>政治面貌</td>
            <td>工作单位</td>
            <td>任何职务</td>
        </tr>
        <tr ng-repeat="item in student.family">
            <td>{{item.relation}}</td>
            <td>{{item.name}}</td>
            <td>{{item.polity}}</td>
            <td>{{item.company}}</td>
            <td>{{item.post}}</td>
        </tr>
    </tbody>
</table>
    </div>
</div>